package com.bootdo.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.crm.dao.AchievementDao;
import com.bootdo.crm.domain.AchievementDO;
import com.bootdo.crm.service.AchievementService;



@Service
public class AchievementServiceImpl implements AchievementService {
	@Autowired
	private AchievementDao achievementDao;
	
	@Override
	public AchievementDO get(Integer achievementId){
		return achievementDao.get(achievementId);
	}
	
	@Override
	public List<AchievementDO> list(Map<String, Object> map){
		return achievementDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return achievementDao.count(map);
	}
	
	@Override
	public int save(AchievementDO achievement){
		return achievementDao.save(achievement);
	}
	
	@Override
	public int update(AchievementDO achievement){
		return achievementDao.update(achievement);
	}
	
	@Override
	public int remove(Integer achievementId){
		return achievementDao.remove(achievementId);
	}
	
	@Override
	public int batchRemove(Integer[] achievementIds){
		return achievementDao.batchRemove(achievementIds);
	}
	
}
